import { createRouter, createWebHashHistory } from "vue-router";

import index from '../views/Admin/index.vue';
import Login from '../views/Admin//Login.vue';
import list from '../views/Admin/Banner/list.vue';
import add from '../views/Admin/Banner/add.vue';
import list1 from '../views/Admin/Shop/list1.vue';
import add1 from '../views/Admin/Shop/add1.vue';
import list2 from '../views/Admin/Manger/list2.vue';
import add2 from '../views/Admin/Manger/add2.vue';
// import Login from '../views/Admin/Login/Login.vue';
import list3 from '../views/Admin/Address/list3.vue';
import sxorder from '../views/Admin/Order/sxorder.vue';
import list4 from '../views/Admin/Order/list4.vue';
import simple from '../views/Admin/Data/simple.vue';
import simpledata from '../views/Admin/Data/simpledata.vue';

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/Login"
        },
        {
            path: '/login',
            component: Login,
        },
        {
            path: '/admin',
            component: index,
            children: [
                {
                    path: "list",
                    component: list
                },
                {
                    path: "add",
                    component: add
                },
                {
                    path: "add1",
                    component: add1
                },
                {
                    path: "list1",
                    component: list1
                },
                {
                    path: "add2",
                    component: add2
                },
                {
                    path: "list2",
                    component: list2
                },
                // {
                //     path: "Login",
                //     component: Login
                // },

                {
                    path: "list3",
                    component: list3
                }
                ,
                {
                    path: "list4",
                    component: list4
                },
                {
                    path: "sxorder",
                    component: sxorder
                }
                ,
                {
                    path: "simple",
                    component: simple
                },
                {
                    path: "simpledata",
                    component: simpledata
                }

            ]

        }
    ]
})
